package org.example.clienet.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class RibbonService {
    @Autowired
    RestTemplate restTemplate;
    public String hi(){
        System.out.println("okservice");
        return restTemplate.getForObject
                ("http://spring-cloud-alibaba-provider-229981204/hello/nacos/229981204",String.class);
    }
}
